/** create by liuhua at 2018年6月6日 上午9:32:20 **/
package com.star.truffle.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

@EnableEurekaClient
@SpringBootApplication
public class GatewayApplication {

  public static void main(String[] args) {
    SpringApplication.run(GatewayApplication.class, args);
  }

  @Bean
  public RequestTimeGatewayFilterFactory requestTimeGatewayFilterFactory() {
    return new RequestTimeGatewayFilterFactory();
  }
}
